package com.example.myspringbootproject.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.myspringbootproject.pojo.T_teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper

public interface TeacherMapper extends BaseMapper<T_teacher> {
    @Select("select * from t_teacher where username = #{username}")
    T_teacher selectByUsername(String username);
    int insert(T_teacher t_teacher);

    List<T_teacher> selectAll();

}
